package info.peigen.hotpot.component.raspberrypi.config;

import com.pi4j.Pi4J;
import com.pi4j.context.Context;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;

/**
 * <b>(HotpotDemoConfig)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/2/14
 */
@SuppressWarnings("unused")
@Configuration
public class HotpotRaspberryPiConfig {
    @Bean(name = "pi4j", typed = true)
    public Context pi4j() {
        return Pi4J.newAutoContext();
    }
}
